package j2.shopmail;

public class ServerHelper
{
    
  static   String connecturl="https://192.168.2.55:10087/";
    
    public static String MakeLoginStr(String name,String code)
    {
        return connecturl+"Login?"+"name="+name+"&password="+code;
    }
    public  static  String MakeGoodInfoStr(int id)
    {
        return  connecturl+"GetGood?"+"id="+String.valueOf(id);
    }
    public  static  String MakeGetOrderStr(String id)
    {
        return  connecturl+"GetOrder?"+"id="+id;
    }
    public  static  String MakeGetOrderListStr(String userid)
    {
        return  connecturl+"GetOrderList?"+"userid="+userid;
    }
    public  static  String MakeGoodCountStr()
    {
        return  connecturl+"GoodsCount";
    }
    public static String MakeGetSpecialStr(String name,String code)
    {
        return connecturl+"UserSpecialCode?"+"name="+name+"&password="+code;
    }
    public static String MakeCreateOrderStr(String userid,String phone,String address)
    {
       return connecturl+"CreateOrder?"+"userid="+userid+"&phone="+phone+"&address="+address;
    }
    public static String MakeChangePasswordStr(String name,String password,String newPass)
    {
        return connecturl+"UserChangePasswordByOldPassword?"+"name="+name+"&old="+password+"&newpassword="+newPass;
    }
    public static String MakeChangePasswordBySpecialStr(String name,String code,String newPass)
    {
        return connecturl+"UserChangePasswordBySpecialCode?"+"name="+name+"&code="+code+"&newpassword="+newPass;
    }
    public static String MakeGetImageStr(String id)
    {
        return connecturl+"GetImage?id="+id;
    }
    
    public static String MakeRegisterStr(String name,String code)
    {
       return connecturl+"Rigister?"+"name="+name+"&password="+code;
    }
    public static String MakeParseStr(String code)
    {
        return connecturl+"ParseCode?"+"code="+code;
    }
    

}
